var fs=require('fs');
var path=require('path');

var filePath=path.join(__dirname,'/1.txt');
var readable=fs.createReadStream(filePath);
readable.on('data',function(chunk){//会触发很多次，每次传输一部分
    console.log(chunk.toString('utf-8'))
})
readable.on('end',function(){
    console.log('readable ended')
})

readable.pipe(process.stdout);

